﻿using System.IO;
using System.Reflection;
using System.Windows;

namespace BleQua {
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application {
		public static Core.Main Core;

		public App( ) {
			App.Current.Startup += new StartupEventHandler(Current_Startup);
			App.Current.Exit += new ExitEventHandler(Current_Exit);
			Core = new Core.Main( ) { Config = new Core.Basic.Config( ) { StartupPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly( ).Location) } };
			Core.Reload( );
		}

		[PreEmptive.Attributes.Setup(CustomEndpoint = "so-s.info/PreEmptive.Web.Services.Messaging/MessagingServiceV2.asmx")]
		private void Current_Startup(object sender, StartupEventArgs e) {

		}

		[PreEmptive.Attributes.TeardownAttribute( )]
		private void Current_Exit(object sender, ExitEventArgs e) {
			//Core.Dispose( );
		}
	}
}
